<template>
  <div class="message-board">
    <div class="board-back"/>
    <div class="board-content-back"/>

    <div class="board-content">
      <div class="index f3">
        {{ index + 1 }} 楼
      </div>
      <div class="user f2-zlz">
        <span class="f3-zlz" style="font-weight: bolder">{{ message.user.username }}</span> 留言说：
      </div>
      <div class="message f1">
        {{ message.content }}
      </div>
    </div>

  </div>
</template>

<script>
export default {
  name: "MessageBoardBoard",
  props: {
    message: {
      type: Object
    },
    index: {
      type: Number
    }
  }
}
</script>

<style scoped lang="scss">
.message-board {
  position: relative;
  width: 390px;
  height: 310px;
  overflow: hidden;
}

.board-back {
  z-index: -1;
  width: 370px;
  height: 310px;
  background-image: url("../../../../public/image/留言板2.png");
  background-position: 0 -20px;
  background-size: 100% 100%;
}

.board-content-back {
  background: white;
  height: 118px;
  width: 262px;
  z-index: 2;
  position: absolute;
  top: 121px;
  left: 50px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.board-content {
  background: rgba(244, 244, 244, 0.68);
  height: 118px;
  width: 262px;
  z-index: 2;
  position: absolute;
  top: 121px;
  left: 50px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.index {
  width: 100%;
  position: absolute;
  top: -65px;
  font-weight: bolder;
  text-shadow: 2px 3px 1px rgba(0, 0, 0, 0.4);
  font-style: oblique
}

.user {
  text-align: left;
  padding: 5px;
  height: 20px;
}

.message {
  text-align: left;
  padding: 10px;
  text-decoration: underline;
  overflow: hidden;
  height: 62px;
  line-height: 24px;
  text-indent: 2em;
}
</style>